from lxml import etree

# 解析XML文件
tree = etree.parse('example.xml')
root = tree.getroot()

# 找到并打印最大的元素值
max_value = max(int(element.text) for element in root.findall('.//some_element'))
print(f"Max value found: {max_value}")